package com.wyvoid.forum.dao.hibernate;

import com.wyvoid.forum.dao.IAdminGroupDAO;
import com.wyvoid.forum.domain.AdminGroup;
import com.wyvoid.core.persistent.hibernate.HibernateDAO;

import java.util.List;

/**
 * User: cjp
 * Date: 2007-7-2
 * Time: 21:54:04
 */
public class AdminGroupDAO extends HibernateDAO<AdminGroup> implements IAdminGroupDAO {
    public AdminGroup getAdminGroup(long id) {
          return doQueryUnique("from AdminGroup where id=?", id);
    }

    public void updateAdminGroup(long id, String permissions) {
         super.executeHsql("update AdminGroup set permissions='" + permissions + "' where id='" + id + "'");
    }
}
